{temp('admin/head')}

</head>
<body class="page-body">
			
		{temp('admin/left')}

			{temp('admin/top')}

			{if(@$rs)}
			<div class="row">
				<div class="col-sm-12">
					
					<div class="panel panel-default">
						<div class="panel-heading">
							<h3 class="panel-title">{$tit}</h3>
						</div>
						<div class="panel-body">
							<div class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">专家ID</label>
									<div class="col-sm-10">
										<div class="form-control"style="border:0px;">
										{$rs['zjid']}
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">课程名称</label>
									<div class="col-sm-10">
										{if(@$bj)}
											<input type="text" class="form-control" id="sp_name" value="{$rs['name']}"/>
										{else}
											<div class="form-control" style="border:0">{$rs['name']}</div>
										{/if}

									</div>
								</div>
																				
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">课程内容</label>
									<div class="col-sm-10">
										{if(@$bj)}
											<textarea id="content"  class="form-control">{if(@$rs['content'])}{$rs['content']}{/if}</textarea>
										{else}
											<div class="form-control" style="border:0;height:auto;word-break:break-all;">{if(@$rs['content'])}{$rs['content']}{else}暂无描述{/if}</div>
										{/if}										
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">观看扣除积分</label>
									<div class="col-sm-10">
										{if(@$bj)}
											<input type="text" class="form-control" id="sp_jifen" value="{$rs['jifen']}"/>
										{else}
											<div class="form-control" style="border:0">{$rs['jifen']}</div>
										{/if}
										
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">浏览量</label>
									<div class="col-sm-10">
										<div class="form-control" style="border:0px;">
										{$rs['ckcs']}
										</div>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">上传时间</label>
									<div class="col-sm-10">
										<div class="form-control" style="border:0px;">
										{code(echo date('Y-m-d H:i',$rs['time']))}
										</div>
									</div>
								</div>
							
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">当前课程状态</label>
									<div class="col-sm-10">
										<div class="form-control"style="border:0px;">
											{if($rs['zt'] == '0')}
												待审核
											{elseif($rs['zt'] =='1' )}
												审核通过
											{elseif($rs['zt'] == '2')}
												审核未通过
											{/if}
										</div>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">审核时间</label>
									<div class="col-sm-10">
										<div class="form-control" style="border:0px;">
										{if(@$rs['stime'])}{code(echo date('Y-m-d H:i',$rs['stime']))}{else}未审核{/if}
										</div>
									</div>
								</div>
								{if(@$rs['shipin'])}
								<div class="form-group">
									<label class="col-sm-2 control-label" for="field-1">视频</label>
									
									<div class="form-control" id="zh" style="border:0px none;margin-left:20%;height:400px;">
									
										<script src="{$adstyle}/js/video_a5/video.js"></script>
										<script type="text/javascript">
											player('{$lj}',500,300,0,"{$adstyle}/js/video_a5/start.jpg",'{$_url}');
										</script>
									</div>
								</div>
								{/if}
								<div class="form-group">
									
									<div class="col-sm-10">
										<a href="{$_url}/admin/?act=recruit&met=zjia_spgl{$gnpd}" class="btn btn-info btn-single pull-right"  style="margin-left:10px;"type="button">返回</a>
										{if(@$bj)}
											<button onclick="bc({$rs['zjid']},{$rs['id']})" class="btn btn-info btn-secondary pull-right"  type="button" >保存</button>
										{else}
										<a href="{$_url}/admin/?act=recruit&met=zjia_spxx&spid={$rs['id']}&zjid={$rs['zjid']}&bj=1{$gnpd}" class="btn btn-secondary btn-single pull-right"  type="button">编辑</a>
										{/if}
									</div>
									
								</div>
							</div>							
						</div>
					</div>
					
				</div>
			</div>
			{/if}
		{temp('admin/foot')}
		<script>
		function bc(zjid,spid){
			var content = $("#content").val();		
			var name = $("#sp_name").val();	
			var jifen = $("#sp_jifen").val();	
			$.post('{$_url}/admin/?act=recruit&met=zjia_spbj{$gnpd}',{zjid:zjid,spid:spid,content:content,name:name,jifen:jifen},function(data){
				alert(data);
			});
		}
		</script>
	<!-- Bottom Scripts -->
	<script src="{$adstyle}/js/bootstrap.min.js"></script>
	<script src="{$adstyle}/js/TweenMax.min.js"></script>
	<script src="{$adstyle}/js/resizeable.js"></script>
	<script src="{$adstyle}/js/joinable.js"></script>
	<script src="{$adstyle}/js/xenon-api.js"></script>
	<script src="{$adstyle}/js/xenon-toggles.js"></script>

	<!-- Imported scripts on this page -->
	<script src="{$adstyle}/js/select2/select2.min.js"></script>

	<!-- JavaScripts initializations and stuff -->
	<script src="{$adstyle}/js/xenon-custom.js"></script>
</body>
</html>